package pe.com.chilis.delivery.log;

import org.apache.log4j.Logger;

public class UtilLog {

	public static final Logger logger = Logger.getLogger("pe");
	
	public final static void imprimirExcepcion(Exception e){
		String strExcepcion = e.toString()+"\n\t";

		for(StackTraceElement ste : e.getStackTrace()){
			strExcepcion+=ste.toString()+"\n\t";
		}
		logger.error("ERROR: "+ strExcepcion);
	}
	
	public final static void imprimeLog(String strMensaje){
		logger.info("INFO: "+strMensaje);
	}
}